﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace prototipos
{
    public partial class WebForm2 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            DataTable dt;
            dt = new DataTable();
            DataColumn dc1 = new DataColumn("Descripcion");
            DataColumn dc2 = new DataColumn("Fecha Inicio");
            DataColumn dc3 = new DataColumn("Fecha Fin");
            DataColumn dc4 = new DataColumn("Porcentaje de avance");
            dt.Columns.Add(dc1);
            dt.Columns.Add(dc2);
            dt.Columns.Add(dc3);
            dt.Columns.Add(dc4);
            DataRow dr1 = dt.NewRow();
            DataRow dr2 = dt.NewRow();
            GridView1.DataSource = dt;
            GridView1.DataBind();

            dr1[0] = "Comprar 200 botellas de cocacola";
            dr1[1] = "14/02/2012";
            dr1[2] = "28/02/2012";
            dr1[3] = "80%";
            dr2[0] = "Comprar tijeras para esta actividad";
            dr2[1] = "1/02/2012";
            dr2[2] = "8/02/2012";
            dr2[3] = "100%";
           
            dt.Rows.Add(dr1);
            dt.Rows.Add(dr2);
            GridView1.DataSource = dt;
            GridView1.DataBind();
        }

        protected void Button2_Click(object sender, EventArgs e)
        {
            Response.Redirect("CrearTarea.aspx");
        }

        protected void Button5_Click(object sender, EventArgs e)
        {
            Response.Redirect("CrearTarea.aspx");
        }

        protected void Button3_Click(object sender, EventArgs e)
        {
            Response.Redirect("EliminarTarea.aspx");
        }

        protected void Button4_Click(object sender, EventArgs e)
        {
            Response.Redirect("CerrarTarea.aspx");
        }

        protected void Button6_Click(object sender, EventArgs e)
        {
            Response.Redirect("EvaluarTarea.aspx");
        }
    }
}